import Vue from "vue";
import Router from "vue-router";

/* Layout */
import Layout from "@/layouts";

import LoginRoutes from "@/views/login/route.js";
import TableRoutes from "@/views/table/router.js";
Vue.use(Router);

export default new Router({
  mode: "history", // require service support
  routes: [
    {
      path: "/",
      component: Layout,
      redirect: "/table-demo",
      children: [...TableRoutes]
    },
    ...LoginRoutes
  ]
});
